package com.tqjc.system.core.pipeline.thread;

import com.tqjc.system.core.util.SpringUtils;
import com.tqjc.system.system.entity.SysTaskErrorInfoEntity;
import com.tqjc.system.system.service.SysPLCRecordService;
import com.tqjc.system.system.service.SysTaskErrorInfoService;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import static cn.hutool.json.XMLTokener.entity;

/**
 * @description:
 * @Author: 86195
 * @Date: 2024/2/27 15:09
 **/
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AddTaskRecordErrorInfoThread extends Thread{

    private SysTaskErrorInfoEntity taskErrorInfoEntity;

    @Override
    public void run() {
        SysTaskErrorInfoService service = SpringUtils.getBean(SysTaskErrorInfoService.class);
        service.save(taskErrorInfoEntity);
    }
}
